package com.zhao.dota.vo;

import com.zhao.dota.util.SteamUtil;
import lombok.Data;

@Data
public class HeroWinRate {

    private Integer playerId;

    private Integer heroId;

    private Integer totals;

    private Integer wins;

    private String heroName;

    private String heroLocalizedName;

    private String playerName;

    private String avatar;

    private String avatarFull;

    private String heroAvatar;

    private Integer kills;

    private Integer assists;

    private Integer deaths;

    public void setHeroAvatar() {
        this.heroAvatar = SteamUtil.getIconUrlByHeroName(getHeroName());
    }

}
